﻿		<div id="chill" style="display: none;"></div>
		<div id="dialogs" style="display: none;">
		
			<div class="dialog new-project">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Crear un proyecto</legend>
					<h3>Nombre</h3>
					<p>
						<input 
							type="text" 
							id="nombre-del-proyecto" 
							class="normal" 
						/>
					</p>
					<h3>Descripci&oacute;n</h3>
					<p>
						<textarea 
							id="descripcion-del-proyecto" 
							class="normal"
						></textarea></p>
					<h3>Link del sitio</h3>
					<p>
						<input 
							type="text" 
							id="link-del-proyecto" 
							class="normal" 
							value="http://"
						/></p>
					<p align="right">
						<input 
							type="button" 
							value="Crear proyecto &raquo;" 
							onclick="Core.newProject(
								$('#nombre-del-proyecto').get(0).value,
								$('#descripcion-del-proyecto').get(0).value,
								$('#link-del-proyecto').get(0).value
							);" 
						/>
					</p>
				</fieldset>
			</div>

			<div class="dialog new-user">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Nuevo Usuario</legend>
					<h3>Login</h3>
					<p>
						<input 
							type="text" 
							id="user-login" 
							class="normal" 
						/>
					</p>
					<h3>Password</h3>
					<p>
						<input
							type="password"
							id="user-password" 
							class="normal"
						/>
					</p>
					<h3>Confirm password</h3>
					<p>
						<input
							type="password"
							id="user-confirm-password" 
							class="normal"
						/>
					</p>
					<h3>Mail</h3>
					<p>
						<input 
							type="text" 
							id="user-mail" 
							class="normal" 
						/></p>
					<p align="right">
						<input 
							type="button" 
							value="Crear usuario &raquo;" 
							onclick="Core.newUser({
								login: $('#user-login').get(0).value,
								password: $('#user-password').get(0).value,
								confirmPassword: $('#user-confirm-password').get(0).value,
								mail: $('#user-mail').get(0).value
							});" 
						/>
					</p>
				</fieldset>
			</div>
			
			<div class="dialog new-article">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Nuevo Art&iacute;culo</legend>
					<h3>Title</h3>
					<p>
						<input 
							type="text" 
							id="new-article-title" 
							class="normal" 
						/>
					</p>
					<h3>Content</h3>
					<p>
						<textarea
							id="new-article-content" 
							class="normal" 
						></textarea>
					</p>
					<p align="right">
						<input 
							type="button" 
							value="Crear art&iacute;culo &raquo;" 
							onclick="Core.newArticle({
								title: $('#new-article-title').get(0).value,
								content: $('#new-article-content').get(0).value
							});" 
						/>
					</p>
				</fieldset>
			</div>

			<div class="dialog edit-article">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Editar Art&iacute;culo</legend>
					<input type="hidden" id="edit-article-id-article" />
					<h3>Title</h3>
					<p>
						<input 
							type="text" 
							id="edit-article-title" 
							class="normal" 
						/>
					</p>
					<h3>Slug</h3>
					<p>
						<input 
							type="text" 
							id="edit-article-slug" 
							class="normal" 
						/>
					</p>
					<h3>Content</h3>
					<p>
						<textarea
							id="edit-article-content" 
							class="normal" 
						></textarea>
					</p>
					<p align="right">
						<input 
							type="button" 
							value="Editar &raquo;" 
							onclick="Core.editArticle({
								idArticle: $('#edit-article-id-article').get(0).value,
								title: $('#edit-article-title').get(0).value,
								slug: $('#edit-article-slug').get(0).value,
								content: $('#edit-article-content').get(0).value
							});" 
						/>
					</p>
				</fieldset>
			</div>

			<div class="dialog new-gallery">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Create Gallery</legend>
					<h3>Title</h3>
					<p>
						<input 
							type="text" 
							id="new-gallery-title" 
							class="normal" 
						/>
					</p>
					<h3>Content</h3>
					<p>
						<textarea
							id="new-gallery-content" 
							class="normal" 
						></textarea>
					</p>
					<p align="right">
						<input 
							type="button" 
							value="Create &raquo;" 
							onclick="Core.newGallery({
								title: $('#new-gallery-title').get(0).value,
								content: $('#new-gallery-content').get(0).value
							});" 
						/>
					</p>
				</fieldset>
			</div>

			<div class="dialog edit-gallery">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<fieldset>
					<legend>Editar Galer&iacute;a</legend>
					<input type="hidden" id="edit-gallery-id-gallery" />
					<h3>Title</h3>
					<p>
						<input 
							type="text" 
							id="edit-gallery-title" 
							class="normal" 
						/>
					</p>
					<h3>Slug</h3>
					<p>
						<input 
							type="text" 
							id="edit-gallery-slug" 
							class="normal" 
						/>
					</p>
					<h3>Content</h3>
					<p>
						<textarea
							id="edit-gallery-content" 
							class="normal" 
						></textarea>
					</p>
					<p align="right">
						<input 
							type="button" 
							value="Editar &raquo;" 
							onclick="Core.editGallery({
								idGallery: $('#edit-gallery-id-gallery').get(0).value,
								title: $('#edit-gallery-title').get(0).value,
								slug: $('#edit-gallery-slug').get(0).value,
								description: $('#edit-gallery-content').get(0).value
							});" 
						/>
					</p>
				</fieldset>
			</div>
			
			<div class="dialog new-photo">
				<form method="post" enctype="multipart/form-data">
				<a class="close" href="javascript:Core.dialog.closeAll();">X</a>
				<input type="hidden" name="action" value="new-photo-upload" />
				<fieldset>
					<legend>Upload photo</legend>
					<h3>Title</h3>
					<p>
						<input 
							type="text" 
							id="new-photo-title" 
							class="normal" 
							name="new-photo-title"
						/>
					</p>
					<h3>Description</h3>
					<p>
						<textarea
							name="new-photo-content"
							id="new-photo-content" 
							class="normal" 
						></textarea>
					</p>
					<h3>File</h3>
					<p>
						<input 
							type="file" 
							name="new-photo-file" 
						/>
					</p>
					<p align="right">
						<input 
							type="submit" 
							value="Upload &raquo;" 
						/>
					</p>
				</fieldset>
				</form>
			</div>
			
		</div>